package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "UpdateUserInfoRequest", description = "完善用户信息请求参数")
public class UpdateUserInfoRequest {

    @ApiModelProperty("用户姓名")
    @NotBlank(message = "请填写用户姓名")
    private String realName;

    @ApiModelProperty("身份证号")
    @Length(min = 18, max = 18, message = "身份证号只能是18个字符")
    private String identityCardNo;

    @ApiModelProperty("生日")
    private String birthday;

    @ApiModelProperty(value = "1男，2女，3保密")
    private Integer sex;

}
